import { useState } from 'react';
import CountLabel from './CountLabel';

export default function CountTrend() {
  const [count, setCount] = useState(0);
  return (
    <div>
      <button onClick={() => setCount((c) => c + 1)}>Increment</button>
      <button onClick={() => setCount((c) => c - 1)}>Decrement</button>
      <CountLabel count={count} />
    </div>
  );
}
